class CreateAdmins < ActiveRecord::Migration
  def self.up
    create_table :admins do |t|
      t.string :name
      t.string :password

      t.timestamps
    end

    if Admin.count.zero?
      admin = Admin.new(:name => 'leelay', :password => 'leelaykitty')
      admin.save
    end
  end

  def self.down
    drop_table :admins
  end
end
